const express = require('express');
const logger = require('morgan');

const loongRouter = require('./routes/loong');

const port = '4000'; 
const app = express();

app.use( logger('dev') );
app.use( express.json() );
app.use( express.urlencoded({ extended: false }) );

app.use( '/loong' , loongRouter );

app.listen( port , () => console.log( `后端正在监听${port}端口`) );